<?php
include ( '_libs/logger.php' );
include ( '_libs/cache_on_request.php' );
//custom inclusions
//require_once ( $_SERVER[ 'DOCUMENT_ROOT' ].'/ngs_vendors/phpthumb/phpthumb.class.php');

//$FrontController = new GenerateOnRequest( 2 ); //0: nodebug, 1:debug on error and maintenance, 2 always debug, no content-gen
$FrontController = new CacheOnRequest( 1 ); //0: nodebug, 1:debug on error and maintenance, 2 always debug, no content-gen

//attacching drivers
$FrontController->attachDriver( new ResetController );
$FrontController->attachDriver( new RefreshController );
//$FrontController->attachDriver( new RemoteDocumentCache( 'http://cache-on-request.googlecode.com/svn/trunk/' ) );
//we try to use phpthumb, then degrade to gif if phpthumb is not available
//$FrontController->attachDriver( new PhpThumbImageResizer( '/media/dati/root/common-lib/phpthumb/phpthumb.class.php'));
$FrontController->attachDriver( new GdImageResizer );

$FrontController->run( $_SERVER[ 'REQUEST_URI' ], dirname(__FILE__ ) );

?>	